ifndef $(CROSS-BULID)
	CROSS-BULID = arm-linux-
endif

CC := ${CROSS-BULID}gcc
AR := ${CROSS-BULID}ar

CFLAGS := -Wall -Werror -O2

# get soures list of current path
DELAY_FILES = $(wildcard *.c)
# generate obj list   
DELAY_OBJ = $(DELAY_FILES:.c=.o)
# define lib name
DELAY_LIB := delay

# build static lib
staticlib : $(DELAY_OBJ)
	$(AR) rcs lib$(DELAY_LIB).a $^

clean:
	$(RM) $(DELAY_OBJ)
